$--color-white: #fff !default;
$--color-black: #000 !default;
$app--color-red: #cd5f62 !default;
$app--color-green: #27b494 !default;
// 登录页面公共样式
.login {
  width: 100%;
  height: 100%;
  background-image: url('./../images/common/logo-img.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  position: relative;
  min-height: 610px;
  //.hint {
  //  background-color: rgba(0, 0, 0, .4);
  //  position: absolute;
  //  top: 0;
  //  left: 0;
  //  right: 0;
  //  bottom: 0;
  //  z-index: 9;
  //}
  .admin {
    &-main {
      z-index: 99;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      &-left{
        width: 300px;
        height: 260px;
      }
      &-right{
        width: 300px;
        margin-left: 60px;
        &-checkbox {
          margin:0!important;
        }
      }
      .admin-form {
        height: 380px;
        width: 700px;
        background-color: #fff;
        box-shadow: 0px 0px 6px #a0a0a0;
        //border: 10px solid rgba(255, 255, 255, 0.5);
        //padding: 67px 40px 100px 40px;
        padding-top: 30px;
        background-clip: padding-box;
        border-radius: 10px;
        h6 {
          margin-bottom: 15px;
          font-size: 20px;
          font-weight: bold;
        }
        h5{
          margin-bottom: 30px;
          color: #999;
          font-weight: normal;
        }
        &-label{
          margin-bottom: 23px;
          .el-input {
            .el-input__inner {
              height: 41px !important;
            }
          }
        }
        .app-admin {
          height: 41px;
          width: 100%;
          background: $app--color-green;
          //background: linear-gradient(180deg, rgba(85, 98, 242, 1), rgba(40, 127, 255, 1), rgba(40, 127, 255, 1));
          border: 1px solid rgba(221, 221, 221, 1);
          border-radius: 8px;
        }
      }

    }
  }
}

//房间管理
.home{
  &-list{
    display: -webkit-flex; /* Safari */
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    &:after {
      content: "";
      /*flex: auto;*/
      width: 216px;
      height: 0;
      display: block;
    }
    &-div{
      width:216px;
      border: 1px solid #e5e5e5;
      position: relative;
      padding: 10px;
      margin: 10px 0;
      cursor: pointer;
      &-img{
        position: relative;
      }
      //直播中
      &-span{
        position: absolute;
        bottom: 0;
        right: 0;
        background: rgba(0,0,0,0.3);
        padding: 2px 6px;
        i{
          font-size: 12px;
          margin-left: 5px;
          color: #fff;
        }
      }
      p{
        color: #333;
        margin:20px 0 10px 0;
      }
    }
    //启用遮罩
    &-shade{
      position: absolute;
      top:0;
      left: 0;
      right: 0;
      width: 215px;
      height: 120px;
      background: rgba(255,255,255,0.7);
      text-align: center;
      &-img{
        display: inline-block;
        margin-top:35px;
      }
      &-span{
        display: block;
        color: $app--color-green;
        font-weight: bold;
        margin-top: 10px;
      }
    }

  }

}
.active-switch{
  box-shadow: 0px 1px 5px #888888;
}

//学生问题
.app-problem{
  margin-bottom: 10px;
  &-name{
    color: $app--color-green;
  }
  &-text{
    text-indent: 2em;
    line-height: 22px;
    img{
      display: inline-block;
      text-align: center;
      margin: 10px auto;
      width: auto;
      max-width: 100%;
    }
  }
}
//题目排队
.app-classify{
  margin-bottom: 25px;
  &-name{
    width: 280px;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}
//禁言名单
.app-prohibit{
  border:1px solid #eee;
  text-align: center;
  color: #fff;
  line-height: 34px;
  &-title{
    border-bottom: 1px solid #eee;
    span{
      display: inline-block;
      width: 50%;
      background: #282828;
    }
  }
  &-content{
    &-div{
      border-bottom: 1px solid #eee;
      &:last-child{
        border-bottom: none;
      }
      span{
        display: inline-block;
        width: 50%;
      }
    }
  }
}

// 添加教师页、编辑页 公用
.app-edit{
  width: 340px;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%,-50%);
  &-div{
    margin-top: 20px;
    font-size: 13px;
    &-spanText{
      display: inline-block;
      width: 95px;
      text-align: right;
      margin-right: 10px;
    }
    &-spanName{
      margin-left: 15px;
    }
  }
}

//题目视频管理
.app-video {
  //首页 列表
  &-list {
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    align-items:center;
    display: -webkit-flex;
    &-name {
      float: left;
      width: 15%;
      text-align: center;
      font-size: 20px;
      padding-bottom: 99999px;
      margin-bottom: -99999px;
      overflow: hidden;
    }
    &-middle {
      float: left;
      width: 70%;
      padding-bottom: 99999px;
      margin-bottom: -99999px;
      overflow: hidden;
      &-div {
        border-right: 1px solid #ddd;
        border-left: 1px solid #ddd;
        p {
          display: inline-block;
          width: 50%;
          text-align: right;
          padding: 10px 60px 10px 0;
        }
        &-text {
          margin-right: 20px;
          color: #afafaf;
        }
      }
    }
    &-operation {
      float: left;
      width: 15%;
      font-size: 15px;
      text-align: center;
      padding-bottom: 99999px;
      margin-bottom: -99999px;
      overflow: hidden;
    }
  }
// 评分列表
  &-score{
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    align-items:center;
    display: -webkit-flex;
    &-name {
      float: left;
      width: 12.5%;
      text-align: center;
      font-size: 20px;
      background: #fafafa;
      padding-bottom: 99999px;
      margin-bottom: -99999px;
      overflow: hidden;
      &:first-child{
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
      }
    }
    &-middle {
      float: left;
      width: 25%;
      border-right: 1px solid #ddd;
      border-left: 1px solid #ddd;
      padding-bottom: 99999px;
      margin-bottom: -99999px;
      overflow: hidden;
      &-div {
        text-align: center;
        p {
          display: inline-block;
          margin: 10px 0;
        }
        &-text {
          margin-right: 20px;
          color: #afafaf;
        }
      }
    }
    &-inputDiv{
      display: inline-block;
      text-align: center;
      width: 12%;
      border-left: 1px solid #ddd;
      padding-bottom: 99999px;
      margin-bottom: -99999px;
      overflow: hidden;
      &-div {
        p {
          display: inline-block;
          margin: 10px;
          .el-input{
            height: 28px;
            width: 100px;
            .el-input__inner{
              text-align: center;
              &::-webkit-input-placeholder{
                color:#888;
              }
              &::-moz-placeholder{   /* Mozilla Firefox 19+ */
                color:#888;
              }
              &:-moz-placeholder{    /* Mozilla Firefox 4 to 18 */
                color:#888;
              }
              &:-ms-input-placeholder{  /* Internet Explorer 10-11 */
                color:#888;
              }
            }
          }
        }
      }
    }
  }

}

//给文本添加字体属性
.app-table-green{
  cursor: pointer;
  color: $app--color-green;
}

//评论区
.app-comment{
  margin: 10px;
  &-div{
    margin:20px 10px;
    &-list{
      margin-bottom: 15px;
      border-bottom: 1px solid #ccc;
      &-title{
        img{
          display: inline-block;
          vertical-align: -10px;
          width: 35px;
          margin-right: 10px;
        }
      }
      &-delete{
         color: #cd5f62;
        cursor: pointer;
      }
      &-p{
        margin-top: 10px;
        margin-bottom: 10px;
      }
    }
  }
}



/*弹窗*/
.app-open{
  position: fixed;
  background: rgba(0,0,0,.4);
  width: 100%;
  height: 100%;
  top:0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  /*基础宽度*/
  &-box{
    width: 400px;
    background: #fff;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
  }
  /*关闭按钮*/
  em{
    cursor: pointer;
    color: #999;
  }
  &-title{
    border-bottom: 1px solid #ddd;
    margin: 10px;
    line-height: 30px;
    text-align: left;
  }
  /*主内容区*/
  &-content{
    margin: 0 10px;
    padding-right: 10px;
    &-text{
      margin: 15px 0;
      text-align: center;
    }
    /*弹窗滚动条*/
    &-roll{
      max-height: 680px;
      overflow-y:auto;
      &::-webkit-scrollbar{
        width: 6px;     /*高宽分别对应横竖滚动条的尺寸*/
        height: 6px;
      }
      &::-webkit-scrollbar-thumb{
        border-radius: 5px;
        -webkit-box-shadow: inset 0 0 5px rgba(204,204,204,0.7);
        background: rgba(204,204,204,0.2);
      }
      &::-webkit-scrollbar-track{
        -webkit-box-shadow: inset 0 0 5px rgba(204,204,204,0.7);
        border-radius: 0;
        background: rgba(211,211,211,0.1);
      }
    }

  }

}


